<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>全局属性</title>
    <script type="text/javascript">
        // 在 `the global object` 中定义的属性

        console.log(window === globalThis);

        console.log('- - - 值属性( value properties ) - - -');
        // 所有在 `the global object` 定义的属性都可以直接使用(不必使用任何前缀)
        console.log(window.NaN, NaN); // Not a Number (不是一个数字)
        console.log(window.Infinity, Infinity); // 无穷大
        console.log(window.undefined, undefined); // undefined
        console.log(window.globalThis, globalThis);

        console.log('- - - 函数属性( function properties ) - - -');

        console.log(window.eval);
        console.log(window.uneval); // undefined
        console.log(window.isFinite);
        console.log(window.isNaN);
        console.log(window.parseFloat);
        console.log(window.parseInt);
        console.log(window.decodeURI);
        console.log(window.decodeURIComponent);
        console.log(window.encodeURI);
        console.log(window.encodeURIComponent);
    </script>
</head>

<body>

</body>

</html>